import {http} from '@/libs/httpRequest';

// 表格数据
export function getList (params) {
    return http({
        url: '/admin/user/list',
        method: 'get',
        params: params
    })
}

// 保存管理员
export function save (data) {
    return http({
        url: '/admin/user/save',
        method: 'post',
        data: data
    })
}

// 修改管理员
export function update (data) {
    return http({
        url: '/admin/user/update',
        method: 'post',
        data: data
    })
}

//删除管理员
export function remove(data){
    return http({
        url:'/admin/user/delete',
        method:'delete',
        data:data
    })
}

//删除管理员
export function initPassword(data){
  return http({
    url:'/admin/user/initPassword',
    method:'post',
    data:data
  })
}
